<?php

if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
    $ip_addr = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
    $ip_addr = $_SERVER['REMOTE_ADDR'];
}

$ip_addr = "112.198.64.29";
$geoplugin = unserialize( file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip_addr) );
if ( is_numeric($geoplugin['geoplugin_latitude']) && is_numeric($geoplugin['geoplugin_longitude']) ) {
$lat = $geoplugin['geoplugin_latitude'];
$long = $geoplugin['geoplugin_longitude'];
$city = $geoplugin['geoplugin_city'];
}

define("IP_ADDRESS",$ip_addr);
define('LAT',$lat);
define('LONG',$long);
define('CITY',$city);
date_default_timezone_set('Asia/Hong_Kong');


//EMAIL SETTINGS
define("BH_EMAIL","genemorriseyzablan@gmail.com");
define("BH_PASSWORD","Ab7323066");


define("BASE_URI",$config->application->baseUri);
define("CURR_DATE", date('Y-m-d H:i:s'));
define("SECRET_KEY","ILOVEBH");


// fb api

define("REDIRECT_URL",BASE_URI.'users/fblogin');

// settings for cloudinary
define("IMAGE_URL_SMALL","http://res.cloudinary.com/behomebased-ph/image/upload/v");
define("PROF_HEIGHT",650);
define("PROF_WIDTH",650);


// settings for pusher
//define("PUSHER_APP_ID","99193");
//define("PUSHER_APP_KEY","2e92c25412a18c2f7f97");
//define("PUSHER_APP_SECRET","e140b1c00270b95a3bda");

//define("PUSHER_APP_ID","106312");
//define("PUSHER_APP_KEY","52c72586317ecdcdccd3");
//define("PUSHER_APP_SECRET","ecbe22ae5693e2c053f6");

define("PUSHER_APP_ID","110158");
define("PUSHER_APP_KEY","853bcc01151a6ec2ac61");
define("PUSHER_APP_SECRET","7fd1cddc5f4c1115f96a");


define("DEFAULT_PIC","1422600100/no-dp_wudgdv.jpg");

define("DEFAULT_PROFILE_PIC_MALE","1425560663/ProfileDpMale_hchi6x.png");
//define("DEFAULT_PROFILE_PIC_FEMALE","1425560663/ProfileDpMale_hchi6x.png");

